﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProPartymemberInspection.aspx.cs" Inherits="JoinParty.admin.FlowStep.ProPartymemberInspection" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:HiddenField ID="hdfMemberID" runat="server" />
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" ShowBorder="false" ShowHeader="false" AutoScroll="true" runat="server">
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server" Position="Bottom" ToolbarAlign="Center">
                    <Items>
                        <f:Button ID="btnSaveClose" ValidateForms="SimpleForm1" Icon="SystemSaveClose" OnClick="btnSaveClose_Click"
                            runat="server" Text="保存并关闭">
                        </f:Button>
                        <f:Button ID="btnSubmit" runat="server" CssClass="marginr" OnClick="btnSubmit_Click" Icon="Tick"
                            Text="提交">
                        </f:Button>
                        <f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
                            Text="关闭">
                        </f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Items>
                <f:SimpleForm ID="SimpleForm1" ShowBorder="false" ShowHeader="false" runat="server"
                    BodyPadding="10px" Title="SimpleForm" Width="700px">
                    <Items>
                        <f:Label ID="lbWorkGuide" Label="工作指引" runat="server" LabelAlign="right" EncodeText="false" LabelWidth="120px"></f:Label>
                        <f:TextBox Label="姓名" runat="server" ID="txtUserName" LabelAlign="right" LabelWidth="120px"></f:TextBox>
                        <f:DropDownList ID="ddlGender" Label="性别" runat="server" LabelAlign="right" LabelWidth="120px">
                            <f:ListItem Text="男" Value="0" Selected="true" />
                            <f:ListItem Text="女" Value="1" />
                        </f:DropDownList>
                        <f:TextBox Label="工作单位及职务" runat="server" ID="txtUnitsAndPost" LabelAlign="right" LabelWidth="120px"></f:TextBox>
                        <f:DatePicker ID="dtPassTime" runat="server" Label="党支部通过时间" LabelAlign="right" LabelWidth="120px"></f:DatePicker>
                        <f:DatePicker ID="dtAppTime" runat="server" Label="党委审批时间" LabelAlign="right" LabelWidth="120px"></f:DatePicker>
                        <f:DatePicker ID="dtTimeExpiration" runat="server" Label="预备期满时间" LabelAlign="right" LabelWidth="120px"></f:DatePicker>
                        <f:TriggerBoxPicker Label="所属组织" LabelAlign="right" LabelWidth="120px"
                            runat="server" ID="ppOU" ShowTrigger1="true" ShowTrigger2="true"
                            EnableEdit="false" WindinsTitle="选择所属组织"
                            WindinsHeight="450px" EnableTrigger1PostBack="false"
                            WindinsWidth="700px" WindinsUrl="../../../Share/Picker/BranchToMemberPicker.aspx"
                            Trigger1Icon="Clear">
                        </f:TriggerBoxPicker>
                        <%--<f:HtmlEditor ID="heRelativeMerits" runat="server" Label="被批准为预备党员时的主要优缺点" LabelAlign="right" LabelWidth="120px" Height="160"></f:HtmlEditor>--%>
                        <f:Label ID="lbRelativeMerits" Label="被批准为预备党员时的主要优缺点" runat="server" LabelAlign="left"></f:Label>
                        <f:ContentPanel ID="cpRelativeMerits" runat="server" ShowBorder="false" ShowHeader="false" Title="baad">
                            <script type="text/plain" name="editor" id="editor"></script>
                        </f:ContentPanel>
                    </Items>
                </f:SimpleForm>
            </Items>
        </f:Panel>
    </form>
</body>
<script src="../../../../Resource/js/jquery/jquery.min.js"></script>
<script src="../../../../Resource/ueditor/ueditor.config.js"></script>
<script src="../../../../Resource/ueditor/ueditor.all.min.js"></script>
<script>
    var containerClientID = '<%= cpRelativeMerits.ClientID %>';

    var editor;
    F.ready(function () {
        // 初始化
        editor = UE.getEditor('editor', {
            initialFrameWidth: '100%',
            initialFrameHeight: '400px',
            enableAutoSave: false,
            saveInterval: 100000,
            elementPathEnabled: false,
            autoHeightEnabled: false,
            autoFloatEnabled: false,
            onready: function () {
                // 重新布局外部容器
                F(containerClientID).updateLayout();
                updateEditor('<%= this.RelativeMeritsContent%>');
            }
        });

    });

    // 更新编辑器内容
    function updateEditor(content) {
        if (editor && editor.isReady) {
            editor.setContent(content);
        }
    }
</script>
</html>
